package com.wlyuan.open.scanner.repository;

import com.wlyuan.open.scanner.domain.quotation.CombineQuotation;
import com.wlyuan.open.scanner.domain.quotation.QuotationOrder;

import java.util.List;

/**
 * @author lijing
 * @description
 */
public interface QuotationCombineRepository {

    /**
     * 同步
     */
    void sync();

    /**
     * 报价单列表
     *
     * @return
     */
    List<CombineQuotation> list();

    /**
     * 根据id获取信息
     *
     * @param orderId
     * @return
     */
    CombineQuotation getByOrderId(Long orderId);

    /**
     * 根据租户获取
     *
     * @param tenantId
     */
    void getByTenantId(Long tenantId);

    CombineQuotation parse(QuotationOrder quotationOrder);
}
